\(\int \frac {1}{(a+b \log (c (d+e x)^n))^3} \, dx\) [23]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [C] (warning: unable to verify)
   Fricas [B] (verification not implemented)
   Sympy [F]
   Maxima [F]
   Giac [B] (verification not implemented)
   Mupad [F(-1)]

Optimal result

Integrand size = 16, antiderivative size = 135 \[ \int \frac {1}{\left (a+b \log \left (c (d+e x)^n\right )\right )^3} \, dx=\frac {e^{-\frac {a}{b n}} (d+e x) \left (c (d+e x)^n\right )^{-1/n} \operatorname {ExpIntegralEi}\left (\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )}{2 b^3 e n^3}-\frac {d+e x}{2 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^2}-\frac {d+e x}{2 b^2 e n^2 \left (a+b \log \left (c (d+e x)^n\right )\right )} \]

[Out]

1/2*(e*x+d)*Ei((a+b*ln(c*(e*x+d)^n))/b/n)/b^3/e/exp(a/b/n)/n^3/((c*(e*x+d)^n)^(1/n))+1/2*(-e*x-d)/b/e/n/(a+b*l
n(c*(e*x+d)^n))^2+1/2*(-e*x-d)/b^2/e/n^2/(a+b*ln(c*(e*x+d)^n))

Rubi [A] (verified)

Time = 0.06 (sec) , antiderivative size = 135, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2436, 2334, 2337, 2209} \[ \int \frac {1}{\left (a+b \log \left (c (d+e x)^n\right )\right )^3} \, dx=\frac {e^{-\frac {a}{b n}} (d+e x) \left (c (d+e x)^n\right )^{-1/n} \operatorname {ExpIntegralEi}\left (\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )}{2 b^3 e n^3}-\frac {d+e x}{2 b^2 e n^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}-\frac {d+e x}{2 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^2} \]

[In]

Int[(a + b*Log[c*(d + e*x)^n])^(-3),x]

[Out]

((d + e*x)*ExpIntegralEi[(a + b*Log[c*(d + e*x)^n])/(b*n)])/(2*b^3*e*E^(a/(b*n))*n^3*(c*(d + e*x)^n)^n^(-1)) -
 (d + e*x)/(2*b*e*n*(a + b*Log[c*(d + e*x)^n])^2) - (d + e*x)/(2*b^2*e*n^2*(a + b*Log[c*(d + e*x)^n]))

Rule 2209

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - c*(f/d)))/d)*ExpInteg
ralEi[f*g*(c + d*x)*(Log[F]/d)], x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !TrueQ[$UseGamma]

Rule 2334

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_), x_Symbol] :> Simp[x*((a + b*Log[c*x^n])^(p + 1)/(b*n*(p + 1)))
, x] - Dist[1/(b*n*(p + 1)), Int[(a + b*Log[c*x^n])^(p + 1), x], x] /; FreeQ[{a, b, c, n}, x] && LtQ[p, -1] &&
 IntegerQ[2*p]

Rule 2337

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_), x_Symbol] :> Dist[x/(n*(c*x^n)^(1/n)), Subst[Int[E^(x/n)*(a +
b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, n, p}, x]

Rule 2436

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[(a + b*Log[c*
x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, n, p}, x]

Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {1}{\left (a+b \log \left (c x^n\right )\right )^3} \, dx,x,d+e x\right )}{e} \\ & = -\frac {d+e x}{2 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^2}+\frac {\text {Subst}\left (\int \frac {1}{\left (a+b \log \left (c x^n\right )\right )^2} \, dx,x,d+e x\right )}{2 b e n} \\ & = -\frac {d+e x}{2 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^2}-\frac {d+e x}{2 b^2 e n^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}+\frac {\text {Subst}\left (\int \frac {1}{a+b \log \left (c x^n\right )} \, dx,x,d+e x\right )}{2 b^2 e n^2} \\ & = -\frac {d+e x}{2 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^2}-\frac {d+e x}{2 b^2 e n^2 \left (a+b \log \left (c (d+e x)^n\right )\right )}+\frac {\left ((d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {x}{n}}}{a+b x} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{2 b^2 e n^3} \\ & = \frac {e^{-\frac {a}{b n}} (d+e x) \left (c (d+e x)^n\right )^{-1/n} \text {Ei}\left (\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right )}{2 b^3 e n^3}-\frac {d+e x}{2 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^2}-\frac {d+e x}{2 b^2 e n^2 \left (a+b \log \left (c (d+e x)^n\right )\right )} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.06 (sec) , antiderivative size = 144, normalized size of antiderivative = 1.07 \[ \int \frac {1}{\left (a+b \log \left (c (d+e x)^n\right )\right )^3} \, dx=-\frac {e^{-\frac {a}{b n}} (d+e x) \left (c (d+e x)^n\right )^{-1/n} \left (-\operatorname {ExpIntegralEi}\left (\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2+b e^{\frac {a}{b n}} n \left (c (d+e x)^n\right )^{\frac {1}{n}} \left (a+b n+b \log \left (c (d+e x)^n\right )\right )\right )}{2 b^3 e n^3 \left (a+b \log \left (c (d+e x)^n\right )\right )^2} \]

[In]

Integrate[(a + b*Log[c*(d + e*x)^n])^(-3),x]

[Out]

-1/2*((d + e*x)*(-(ExpIntegralEi[(a + b*Log[c*(d + e*x)^n])/(b*n)]*(a + b*Log[c*(d + e*x)^n])^2) + b*E^(a/(b*n
))*n*(c*(d + e*x)^n)^n^(-1)*(a + b*n + b*Log[c*(d + e*x)^n])))/(b^3*e*E^(a/(b*n))*n^3*(c*(d + e*x)^n)^n^(-1)*(
a + b*Log[c*(d + e*x)^n])^2)

Maple [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 1.14 (sec) , antiderivative size = 734, normalized size of antiderivative = 5.44

method result size
risch \(-\frac {2 b e n x +2 b d n +i \pi b d \,\operatorname {csgn}\left (i \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2}+i \pi b d \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2}-i \pi b d \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )-i \pi b d \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{3}-i \pi b e x \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{3}+i \pi b e x \,\operatorname {csgn}\left (i \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2}-i \pi b e x \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )+i \pi b e x \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2}+2 \ln \left (c \right ) b e x +2 b e x \ln \left (\left (e x +d \right )^{n}\right )+2 d b \ln \left (c \right )+2 a e x +2 b d \ln \left (\left (e x +d \right )^{n}\right )+2 a d}{{\left (-i b \pi \,\operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i \left (e x +d \right )^{n}\right )+i \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2} b +i \pi \,\operatorname {csgn}\left (i \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2} b -i \pi \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{3} b +2 b \ln \left (\left (e x +d \right )^{n}\right )+2 b \ln \left (c \right )+2 a \right )}^{2} b^{2} n^{2} e}-\frac {\left (e x +d \right ) c^{-\frac {1}{n}} \left (\left (e x +d \right )^{n}\right )^{-\frac {1}{n}} {\mathrm e}^{-\frac {-i b \pi \,\operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i \left (e x +d \right )^{n}\right )+i \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2} b +i \pi \,\operatorname {csgn}\left (i \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2} b -i \pi \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{3} b +2 a}{2 b n}} \operatorname {Ei}_{1}\left (-\ln \left (e x +d \right )-\frac {-i b \pi \,\operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i \left (e x +d \right )^{n}\right )+i \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2} b +i \pi \,\operatorname {csgn}\left (i \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2} b -i \pi \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{3} b +2 b \ln \left (c \right )+2 b \left (\ln \left (\left (e x +d \right )^{n}\right )-n \ln \left (e x +d \right )\right )+2 a}{2 b n}\right )}{2 b^{3} n^{3} e}\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n(I*c)*csgn(I
*(e*x+d)^n)+I*Pi*csgn(I*c)*csgn(I*c*(e*x+d)^n)^2*b+I*Pi*csgn(I*(e*x+d)^n)*csgn(I*c*(e*x+d)^n)^2*b-I*Pi*csgn(I*
c*(e*x+d)^n)^3*b+2*b*ln(c)+2*b*(ln((e*x+d)^n)-n*ln(e*x+d))+2*a)/b/n)

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 263 vs. \(2 (128) = 256\).

Time = 0.30 (sec) , antiderivative size = 263, normalized size of antiderivative = 1.95 \[ \int \frac {1}{\left (a+b \log \left (c (d+e x)^n\right )\right )^3} \, dx=-\frac {{\left ({\left (b^{2} d n^{2} + a b d n + {\left (b^{2} e n^{2} + a b e n\right )} x + {\left (b^{2} e n^{2} x + b^{2} d n^{2}\right )} \log \left (e x + d\right ) + {\left (b^{2} e n x + b^{2} d n\right )} \log \left (c\right )\right )} e^{\left (\frac {b \log \left (c\right ) + a}{b n}\right )} - {\left (b^{2} n^{2} \log \left (e x + d\right )^{2} + b^{2} \log \left (c\right )^{2} + 2 \, a b \log \left (c\right ) + a^{2} + 2 \, {\left (b^{2} n \log \left (c\right ) + a b n\right )} \log \left (e x + d\right )\right )} \operatorname {log\_integral}\left ({\left (e x + d\right )} e^{\left (\frac {b \log \left (c\right ) + a}{b n}\right )}\right )\right )} e^{\left (-\frac {b \log \left (c\right ) + a}{b n}\right )}}{2 \, {\left (b^{5} e n^{5} \log \left (e x + d\right )^{2} + b^{5} e n^{3} \log \left (c\right )^{2} + 2 \, a b^{4} e n^{3} \log \left (c\right ) + a^{2} b^{3} e n^{3} + 2 \, {\left (b^{5} e n^{4} \log \left (c\right ) + a b^{4} e n^{4}\right )} \log \left (e x + d\right )\right )}} \]

[In]

integrate(1/(a+b*log(c*(e*x+d)^n))^3,x, algorithm="fricas")

[Out]

-1/2*((b^2*d*n^2 + a*b*d*n + (b^2*e*n^2 + a*b*e*n)*x + (b^2*e*n^2*x + b^2*d*n^2)*log(e*x + d) + (b^2*e*n*x + b
^2*d*n)*log(c))*e^((b*log(c) + a)/(b*n)) - (b^2*n^2*log(e*x + d)^2 + b^2*log(c)^2 + 2*a*b*log(c) + a^2 + 2*(b^
2*n*log(c) + a*b*n)*log(e*x + d))*log_integral((e*x + d)*e^((b*log(c) + a)/(b*n))))*e^(-(b*log(c) + a)/(b*n))/
(b^5*e*n^5*log(e*x + d)^2 + b^5*e*n^3*log(c)^2 + 2*a*b^4*e*n^3*log(c) + a^2*b^3*e*n^3 + 2*(b^5*e*n^4*log(c) +
a*b^4*e*n^4)*log(e*x + d))

Sympy [F]

\[ \int \frac {1}{\left (a+b \log \left (c (d+e x)^n\right )\right )^3} \, dx=\int \frac {1}{\left (a + b \log {\left (c \left (d + e x\right )^{n} \right )}\right )^{3}}\, dx \]

[In]

integrate(1/(a+b*ln(c*(e*x+d)**n))**3,x)

[Out]

Integral((a + b*log(c*(d + e*x)**n))**(-3), x)

Maxima [F]

\[ \int \frac {1}{\left (a+b \log \left (c (d+e x)^n\right )\right )^3} \, dx=\int { \frac {1}{{\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}^{3}} \,d x } \]

[In]

integrate(1/(a+b*log(c*(e*x+d)^n))^3,x, algorithm="maxima")

[Out]

-1/2*((d*n + d*log(c))*b + a*d + ((e*n + e*log(c))*b + a*e)*x + (b*e*x + b*d)*log((e*x + d)^n))/(b^4*e*n^2*log
((e*x + d)^n)^2 + b^4*e*n^2*log(c)^2 + 2*a*b^3*e*n^2*log(c) + a^2*b^2*e*n^2 + 2*(b^4*e*n^2*log(c) + a*b^3*e*n^
2)*log((e*x + d)^n)) + integrate(1/2/(b^3*n^2*log((e*x + d)^n) + b^3*n^2*log(c) + a*b^2*n^2), x)

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 1218 vs. \(2 (128) = 256\).

Time = 0.41 (sec) , antiderivative size = 1218, normalized size of antiderivative = 9.02 \[ \int \frac {1}{\left (a+b \log \left (c (d+e x)^n\right )\right )^3} \, dx=\text {Too large to display} \]

[In]

integrate(1/(a+b*log(c*(e*x+d)^n))^3,x, algorithm="giac")

[Out]

1/2*b^2*n^2*Ei(log(c)/n + a/(b*n) + log(e*x + d))*e^(-a/(b*n))*log(e*x + d)^2/((b^5*e*n^5*log(e*x + d)^2 + 2*b
^5*e*n^4*log(e*x + d)*log(c) + 2*a*b^4*e*n^4*log(e*x + d) + b^5*e*n^3*log(c)^2 + 2*a*b^4*e*n^3*log(c) + a^2*b^
3*e*n^3)*c^(1/n)) - 1/2*(e*x + d)*b^2*n^2*log(e*x + d)/(b^5*e*n^5*log(e*x + d)^2 + 2*b^5*e*n^4*log(e*x + d)*lo
g(c) + 2*a*b^4*e*n^4*log(e*x + d) + b^5*e*n^3*log(c)^2 + 2*a*b^4*e*n^3*log(c) + a^2*b^3*e*n^3) + b^2*n*Ei(log(
c)/n + a/(b*n) + log(e*x + d))*e^(-a/(b*n))*log(e*x + d)*log(c)/((b^5*e*n^5*log(e*x + d)^2 + 2*b^5*e*n^4*log(e
*x + d)*log(c) + 2*a*b^4*e*n^4*log(e*x + d) + b^5*e*n^3*log(c)^2 + 2*a*b^4*e*n^3*log(c) + a^2*b^3*e*n^3)*c^(1/
n)) - 1/2*(e*x + d)*b^2*n^2/(b^5*e*n^5*log(e*x + d)^2 + 2*b^5*e*n^4*log(e*x + d)*log(c) + 2*a*b^4*e*n^4*log(e*
x + d) + b^5*e*n^3*log(c)^2 + 2*a*b^4*e*n^3*log(c) + a^2*b^3*e*n^3) + a*b*n*Ei(log(c)/n + a/(b*n) + log(e*x +
d))*e^(-a/(b*n))*log(e*x + d)/((b^5*e*n^5*log(e*x + d)^2 + 2*b^5*e*n^4*log(e*x + d)*log(c) + 2*a*b^4*e*n^4*log
(e*x + d) + b^5*e*n^3*log(c)^2 + 2*a*b^4*e*n^3*log(c) + a^2*b^3*e*n^3)*c^(1/n)) - 1/2*(e*x + d)*b^2*n*log(c)/(
b^5*e*n^5*log(e*x + d)^2 + 2*b^5*e*n^4*log(e*x + d)*log(c) + 2*a*b^4*e*n^4*log(e*x + d) + b^5*e*n^3*log(c)^2 +
 2*a*b^4*e*n^3*log(c) + a^2*b^3*e*n^3) + 1/2*b^2*Ei(log(c)/n + a/(b*n) + log(e*x + d))*e^(-a/(b*n))*log(c)^2/(
(b^5*e*n^5*log(e*x + d)^2 + 2*b^5*e*n^4*log(e*x + d)*log(c) + 2*a*b^4*e*n^4*log(e*x + d) + b^5*e*n^3*log(c)^2
+ 2*a*b^4*e*n^3*log(c) + a^2*b^3*e*n^3)*c^(1/n)) - 1/2*(e*x + d)*a*b*n/(b^5*e*n^5*log(e*x + d)^2 + 2*b^5*e*n^4
*log(e*x + d)*log(c) + 2*a*b^4*e*n^4*log(e*x + d) + b^5*e*n^3*log(c)^2 + 2*a*b^4*e*n^3*log(c) + a^2*b^3*e*n^3)
 + a*b*Ei(log(c)/n + a/(b*n) + log(e*x + d))*e^(-a/(b*n))*log(c)/((b^5*e*n^5*log(e*x + d)^2 + 2*b^5*e*n^4*log(
e*x + d)*log(c) + 2*a*b^4*e*n^4*log(e*x + d) + b^5*e*n^3*log(c)^2 + 2*a*b^4*e*n^3*log(c) + a^2*b^3*e*n^3)*c^(1
/n)) + 1/2*a^2*Ei(log(c)/n + a/(b*n) + log(e*x + d))*e^(-a/(b*n))/((b^5*e*n^5*log(e*x + d)^2 + 2*b^5*e*n^4*log
(e*x + d)*log(c) + 2*a*b^4*e*n^4*log(e*x + d) + b^5*e*n^3*log(c)^2 + 2*a*b^4*e*n^3*log(c) + a^2*b^3*e*n^3)*c^(
1/n))

Mupad [F(-1)]

Timed out. \[ \int \frac {1}{\left (a+b \log \left (c (d+e x)^n\right )\right )^3} \, dx=\int \frac {1}{{\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}^3} \,d x \]

[In]

int(1/(a + b*log(c*(d + e*x)^n))^3,x)

[Out]

int(1/(a + b*log(c*(d + e*x)^n))^3, x)